package at.fhooe.swa.client.domain;

import java.util.Map;

public interface ISensorHistoryData
{
	/**
	 * Returns the sensor the history data is for.
	 * @return the sensor the hiostory data is for
	 */
	public ISensor getSensor();
	
	/**
	 * Returns the history data. The key of the map returns the date
	 * as {@link String}. The value of the map matches the data of the sensor at
	 * the given date-key.
	 * @return the history data for the requested interval
	 */
	public Map<String, Object> getHistoryData();
	
	/**
	 * Add a history data entry to the history.
	 * @param dateTime the date-time of the value
	 * @param valueAtDate the value at the date-time
	 */
	public void addDataEntry(String dateTime, Object valueAtDate);

}
